import { businessUrl } from "../config/env";
import request from "../config/axios";

// 获取验证码 auth/code
export const authcode = ()=>request({
    url:`${businessUrl}auth/code`,
    method:"GET",
})

// 登录 auth/login
export const authlogin = (data)=>request({
    url:`${businessUrl}auth/login`,
    method:"post",
    data
})